package com.scitc.pleasurevideo.util;

import android.os.Handler;
import android.view.View;

public class OnClickUtil {

    public static void setViewClickTimes(final View view) {
        view.setClickable(false);
        view.setLongClickable(false);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                view.setClickable(true);
                view.setLongClickable(true);
            }
        }, 500);
    }

}
